#ifndef SCORE_H
#define SCORE_H

#include <QObject>
//单例
class score : public QObject
{
    Q_OBJECT
public:
    static score* getscore();
    void addscore();
private:
    explicit score(QObject *parent = nullptr);

signals:
    void beat();//砸到老鼠后通知mainwindow加分

public slots:
private:
    static score *s;
};

#endif // SCORE_H
